import axios from "~/axios"

export function login(telephone,password,role) {
    return axios.post("/user/login", {
        telephone,
        password,
        role
    })
}

export function getinfo() {
    // flag等于（string类型）1，表示需要后端返回班级名称信息
    return axios.post("/user/getinfo?flag=1")
}

export function updatepassword(data) {
    return axios.post("/user/password", data)
}
